import calendar
# calendar.setfirstweekday(3)
print(calendar.firstweekday())
print(calendar.isleap(2020))
print(calendar.leapdays(1990, 2020))
# print(calendar.prmonth(2020, 3))
# print(calendar.prcal(2020))
# print(calendar.itermonthdates(2020, 3))
def get_date(year):
    list = []
    for i in range(1,13):
        m = calendar.monthrange(year, i)
        start = "{}-{}-01".format(str(year), str(i).zfill(2))
        end = "{}-{}-{}".format(str(year), str(i).zfill(2), m[1])
        a = start + " " + end
        list.append(a)
    print(list)
get_date(2020)

def get_calendar_ym(year=2019, month=1):
    calendar.prmonth(year, month)

get_calendar_ym(2020,3)


